<?php 
/* SVN FILE: $Id$ */
/* Team Test cases generated on: 2009-09-09 21:35:25 : 1252546525*/
App::import('Model', 'Team');

class TeamTestCase extends CakeTestCase {
	var $Team = null;
	var $fixtures = array('app.team', 'app.registration');

	function startTest() {
		$this->Team =& ClassRegistry::init('Team');
	}

	function testTeamInstance() {
		$this->assertTrue(is_a($this->Team, 'Team'));
	}

	function testTeamFind() {
		$this->Team->recursive = -1;
		$results = $this->Team->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Team' => array(
			'id'  => 1,
			'registration_id'  => 1,
			'division'  => 'Lorem ipsum dolor sit amet'
		));
		$this->assertEqual($results, $expected);
	}
}
?>